/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kpsmart.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import javax.swing.DefaultComboBoxModel;
import kpsmart.model.events.CostType;

/**
 *
 * @author klaus
 */
public class EditForm extends javax.swing.JFrame {

    private final List<CostType> costTypes;

    /**
     * Creates new form EditForm
     */
    EditForm(List<CostType> costs) {
        // store copy of costTypes in local field
        this.costTypes = new ArrayList<CostType>(costs);
        initComponents();
        // create and fill combo-box model
        DefaultComboBoxModel model = new DefaultComboBoxModel();
        int i = 1;
        for (CostType c : costTypes) {
            model.addElement(i++ + ". " + c.getFrom() + " - " + c.getTo() + " (" + c.getCompany() + ")");
        }
        this.jComboBox1.setModel(model);
        this.jComboBox1.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                // change text-field values when combobox selection has changed
                setRoute();

            }
        });
        setRoute();
    }

    /**
     * Get selected Route as CostType
     *
     * @return selectedRoute CostType
     */
    private CostType getSelectedRoute() {
        return costTypes.get(jComboBox1.getSelectedIndex());
    }

    /**
     * Set all fields according to the current route
     */
    private void setRoute() {
        CostType c = getSelectedRoute();
        jTextFieldFrom.setText(c.getFrom());
        jTextFieldTo.setText(c.getTo());
        jTextFieldCompany.setText(c.getCompany());
        jComboBoxTypes.setSelectedItem(c.getType());
        jFormattedTextFieldFrequency.setText(c.getFrequency().toString());
        jComboBoxDays.setSelectedItem(c.getDay());
        jFormattedTextFieldDuration.setText(c.getDuration().toString());
        jFormattedTextFieldWeightcost.setText(c.getWeightcost().toString());
        jFormattedTextFieldVolumecost.setText(c.getVolumecost().toString());
        jFormattedTextFieldMaxWeight.setText(c.getMaxWeight().toString());
        jFormattedTextFieldMaxVolume.setText(c.getMaxVolume().toString());
    }

    /**
     * Get the company of the route to update
     *
     * @return oldCompany String
     */
    String getOldCompany() {
        CostType c = getSelectedRoute();
        return c.getCompany();
    }

    /**
     * Get the date of the route to upate
     *
     * @return oldDate long
     */
    long getOldDate() {
        CostType c = getSelectedRoute();
        return c.getDate();
    }

    /**
     * Get the from of the route to update
     *
     * @return oldFroms
     */
    String getOldFrom() {
        CostType c = getSelectedRoute();
        return c.getFrom();
    }

    /**
     * Get the to of the route to update
     *
     * @return oldTo
     */
    String getOldTo() {
        CostType c = getSelectedRoute();
        return c.getTo();
    }

    /**
     * Get the type of the route to update
     *
     * @return oldType
     */
    String getOldType() {
        CostType c = getSelectedRoute();
        return c.getType();
    }

    /**
     * Get value of company field as String
     *
     * @return company
     */
    String getCompany() {
        return this.jTextFieldCompany.getText();
    }

    /**
     * Get value of from field as String
     *
     * @return from
     */
    String getFrom() {
        return this.jTextFieldFrom.getText();
    }

    /**
     * Get value of to field as String
     *
     * @return to
     */
    String getTo() {
        return this.jTextFieldTo.getText();
    }

    /**
     * Get type of route (combo box) as String
     *
     * @return type
     */
    String getRoutetype() {
        return this.jComboBoxTypes.getSelectedItem().toString();
    }

    /**
     * Get the duration value as int
     *
     * @return duration
     */
    int getDuration() {
        return Integer.valueOf(this.jFormattedTextFieldDuration.getText());
    }

    /**
     * Get the day value (combo box) as Stringg
     *
     * @return day
     */
    String getDay() {
        return this.jComboBoxDays.getSelectedItem().toString();
    }

    /**
     * Get the frequency value as int
     *
     * @return frequency
     */
    int getFrequency() {
        return Integer.valueOf(this.jFormattedTextFieldFrequency.getText());
    }

    /**
     * Get max volume value as int
     *
     * @return maxVolume
     */
    int getMaxVolume() {
        return Integer.valueOf(this.jFormattedTextFieldMaxVolume.getText());
    }

    /**
     * Get max weight value as int
     *
     * @return maxWeight
     */
    int getMaxWeight() {
        return Integer.valueOf(this.jFormattedTextFieldMaxWeight.getText());
    }

    /**
     * Get volume cost value as int
     *
     * @return volumecost
     */
    int getVolumecost() {
        return Integer.valueOf(this.jFormattedTextFieldVolumecost.getText());
    }

    /**
     * Get weight cost value as int
     *
     * @return weightcost
     */
    int getWeightcost() {
        return Integer.valueOf(this.jFormattedTextFieldWeightcost.getText());
    }

    /**
     * Check if duration field has integer value
     *
     * @return boolean
     */
    boolean properDuration() {
        return isProperInteger(this.jFormattedTextFieldDuration.getText());
    }

    /**
     * Check if frequency field has integer value
     *
     * @return boolean
     */
    boolean properFrequency() {
        return isProperInteger(this.jFormattedTextFieldFrequency.getText());
    }

    /**
     * Check if max volume field has integer value
     *
     * @return boolean
     */
    boolean properMaxVolume() {
        return isProperInteger(this.jFormattedTextFieldMaxVolume.getText());
    }

    /**
     * Check if max weight field has integer value
     *
     * @return boolean
     */
    boolean properMaxWeight() {
        return isProperInteger(this.jFormattedTextFieldMaxWeight.getText());
    }

    /**
     * Check if volume cost field has integer value
     *
     * @return boolean
     */
    boolean properVolumecost() {
        return isProperInteger(this.jFormattedTextFieldVolumecost.getText());
    }

    /**
     * Check if weightcost field has integer value
     *
     * @return boolean
     */
    boolean properWeightcost() {
        return isProperInteger(this.jFormattedTextFieldWeightcost.getText());
    }

    /**
     * Helper function to check if a String has an integer value
     *
     * @param string
     * @return
     */
    private boolean isProperInteger(String string) {
        try {
            Integer.valueOf(string);
            return true;
        } catch (NumberFormatException e) {
            return false;
        }
    }

    /**
     * Set the type combo box
     *
     * @param types
     */
    void setTypes(Collection<String> types) {
        DefaultComboBoxModel model = new DefaultComboBoxModel();
        for (String s : types) {
            model.addElement(s);
        }
        this.jComboBoxTypes.setModel(model);
    }

    /**
     * Set the day combo box
     *
     * @param days
     */
    void setDays(Collection<String> days) {
        DefaultComboBoxModel model = new DefaultComboBoxModel();
        for (String s : days) {
            model.addElement(s);
        }
        this.jComboBoxDays.setModel(model);
    }

    /**
     * Add ActionListener to submit button
     *
     * @param l
     */
    void addListenerToSubmit(ActionListener l) {
        this.jButtonSubmit.addActionListener(l);
    }

    /**
     * Add ActionListener to cancel button
     *
     * @param l
     */
    void addListenerToCancel(ActionListener l) {
        this.jButtonCancel.addActionListener(l);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jTextFieldTo = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jTextFieldFrom = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        jButtonSubmit = new javax.swing.JButton();
        jButtonCancel = new javax.swing.JButton();
        jTextFieldCompany = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        jComboBoxTypes = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        jFormattedTextFieldDuration = new javax.swing.JFormattedTextField();
        jLabel7 = new javax.swing.JLabel();
        jComboBoxDays = new javax.swing.JComboBox();
        jLabel8 = new javax.swing.JLabel();
        jFormattedTextFieldFrequency = new javax.swing.JFormattedTextField();
        jLabel9 = new javax.swing.JLabel();
        jFormattedTextFieldMaxVolume = new javax.swing.JFormattedTextField();
        jLabel10 = new javax.swing.JLabel();
        jFormattedTextFieldMaxWeight = new javax.swing.JFormattedTextField();
        jLabel11 = new javax.swing.JLabel();
        jFormattedTextFieldVolumecost = new javax.swing.JFormattedTextField();
        jLabel12 = new javax.swing.JLabel();
        jFormattedTextFieldWeightcost = new javax.swing.JFormattedTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
        setTitle("Edit Transport Route");
        setAlwaysOnTop(true);
        setResizable(false);

        jTextFieldTo.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jLabel4.setText("From");

        jLabel5.setText("To");

        jTextFieldFrom.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jLabel13.setText("Type");

        jButtonSubmit.setText("Submit");

        jButtonCancel.setText("Cancel");

        jTextFieldCompany.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

        jLabel1.setText("Company");

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel2.setText("Route");

        jComboBoxTypes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel6.setText("Duration");

        jFormattedTextFieldDuration.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
        jFormattedTextFieldDuration.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jFormattedTextFieldDuration.setText("0");

        jLabel7.setText("Day");

        jComboBoxDays.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jLabel8.setText("Frequency");

        jFormattedTextFieldFrequency.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
        jFormattedTextFieldFrequency.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jFormattedTextFieldFrequency.setText("0");

        jLabel9.setText("Max. Volume");

        jFormattedTextFieldMaxVolume.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
        jFormattedTextFieldMaxVolume.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jFormattedTextFieldMaxVolume.setText("0");

        jLabel10.setText("Max. Weight");

        jFormattedTextFieldMaxWeight.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
        jFormattedTextFieldMaxWeight.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jFormattedTextFieldMaxWeight.setText("0");

        jLabel11.setText("Volumecost");

        jFormattedTextFieldVolumecost.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
        jFormattedTextFieldVolumecost.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jFormattedTextFieldVolumecost.setText("0");

        jLabel12.setText("Weightcost");

        jFormattedTextFieldWeightcost.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.NumberFormatter(new java.text.DecimalFormat("#0"))));
        jFormattedTextFieldWeightcost.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        jFormattedTextFieldWeightcost.setText("0");

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel6)
                    .addComponent(jLabel7)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel11))
                        .addGap(30, 30, 30)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jFormattedTextFieldVolumecost)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jButtonSubmit)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButtonCancel))
                            .addComponent(jFormattedTextFieldWeightcost)))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel9)
                            .addComponent(jLabel10)
                            .addComponent(jLabel8))
                        .addGap(23, 23, 23)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jFormattedTextFieldDuration, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jComboBoxDays, javax.swing.GroupLayout.Alignment.TRAILING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jFormattedTextFieldMaxVolume, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jFormattedTextFieldMaxWeight)
                            .addComponent(jFormattedTextFieldFrequency)))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel1)
                                        .addGap(37, 37, 37))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                                .addGap(8, 8, 8))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel13)
                                .addGap(76, 76, 76)))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jTextFieldCompany, javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jTextFieldFrom)
                                .addComponent(jComboBox1, 0, 296, Short.MAX_VALUE))
                            .addComponent(jTextFieldTo, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jComboBoxTypes, javax.swing.GroupLayout.PREFERRED_SIZE, 296, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(28, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jTextFieldCompany, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jTextFieldFrom, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jTextFieldTo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(11, 11, 11)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(jComboBoxTypes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jFormattedTextFieldDuration, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel8)
                    .addComponent(jFormattedTextFieldFrequency, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jComboBoxDays, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(jFormattedTextFieldMaxVolume, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel10)
                    .addComponent(jFormattedTextFieldMaxWeight, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(jFormattedTextFieldWeightcost, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(jFormattedTextFieldVolumecost, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonCancel)
                    .addComponent(jButtonSubmit))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jComboBox1, jComboBoxDays, jComboBoxTypes, jFormattedTextFieldDuration, jFormattedTextFieldFrequency, jFormattedTextFieldMaxVolume, jFormattedTextFieldMaxWeight, jFormattedTextFieldVolumecost, jFormattedTextFieldWeightcost, jTextFieldCompany, jTextFieldFrom, jTextFieldTo});

        pack();
    }// </editor-fold>//GEN-END:initComponents
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButtonCancel;
    private javax.swing.JButton jButtonSubmit;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBoxDays;
    private javax.swing.JComboBox jComboBoxTypes;
    private javax.swing.JFormattedTextField jFormattedTextFieldDuration;
    private javax.swing.JFormattedTextField jFormattedTextFieldFrequency;
    private javax.swing.JFormattedTextField jFormattedTextFieldMaxVolume;
    private javax.swing.JFormattedTextField jFormattedTextFieldMaxWeight;
    private javax.swing.JFormattedTextField jFormattedTextFieldVolumecost;
    private javax.swing.JFormattedTextField jFormattedTextFieldWeightcost;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JTextField jTextFieldCompany;
    private javax.swing.JTextField jTextFieldFrom;
    private javax.swing.JTextField jTextFieldTo;
    // End of variables declaration//GEN-END:variables
}
